NevronOpenVision
Nevron.Nov.Graphics Namespace / NGeometry2D Class / GetNearestPoint Method / GetNearestPoint(NPoint[],Int32,Int32,NPoint) Method
Array of points.
the index of the first point
the count of points to perform operation upon
point whose nearest point to return
In This Topic
    GetNearestPoint(NPoint[],Int32,Int32,NPoint) Method
    In This Topic
    Gets the point in the specified points array range, which is nearest to the specified point. If count is zero returns the point itself.
    Syntax
    public static NPoint GetNearestPoint( 
       NPoint[] points,
       System.int start,
       System.int count,
       NPoint pt
    )

    Parameters

    points
    Array of points.
    start
    the index of the first point
    count
    the count of points to perform operation upon
    pt
    point whose nearest point to return
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also